//package com.lmx.repoDomain.model;
//
//import io.katharsis.resource.annotations.JsonApiIncludeByDefault;
//import io.katharsis.resource.annotations.JsonApiResource;
//import io.katharsis.resource.annotations.JsonApiToMany;
//
//import java.util.ArrayList;
//import java.util.Collection;
//
//import javax.persistence.CascadeType;
//import javax.persistence.Column;
//import javax.persistence.Entity;
//import javax.persistence.FetchType;
//import javax.persistence.ForeignKey;
//import javax.persistence.JoinColumn;
//import javax.persistence.JoinTable;
//import javax.persistence.ManyToMany;
//import javax.persistence.Table;
//
//import org.hibernate.annotations.Fetch;
//import org.hibernate.annotations.FetchMode;
//
///**
// * 角色表
// */
//@Entity
//@Table(name = "t_s_role")
//@JsonApiResource(type = "role")
//public class Role extends BaseDataEntity {
//	private String code;// 编码
//	private String name;// 角色名称
//	private String remark;//备注
//	private Collection<Privilege> privileges = new ArrayList<Privilege>();
//	
//    @JsonApiToMany
//    @JsonApiIncludeByDefault
//    @ManyToMany(cascade = CascadeType.REFRESH, fetch = FetchType.LAZY)
//    @JoinTable(name = "t_s_role_function", joinColumns = {
//            @JoinColumn(name = "role_id", nullable = false, updatable = false,foreignKey = @ForeignKey(name = "null")) }, inverseJoinColumns = {
//                    @JoinColumn(name = "function_id", nullable = false, updatable = false,foreignKey = @ForeignKey(name = "null")) })
//    @Fetch(FetchMode.JOIN)
//	public Collection<Privilege> getPrivileges() {
//        return privileges;
//    }
//    public void setPrivileges(Collection<Privilege> privileges) {
//        this.privileges = privileges;
//    }
//
//    @Column(name = "code")
//	public String getCode() {
//		return code;
//	}
//
//	public void setCode(String code) {
//		this.code = code;
//	}
//
//	@Column(name = "name")
//	public String getName() {
//		return name;
//	}
//
//	public void setName(String name) {
//		this.name = name;
//	}
//
//	@Column(name = "remark")
//	public String getRemark() {
//		return remark;
//	}
//
//	public void setRemark(String remark) {
//		this.remark = remark;
//	}
//}